package com.utils;

import com.bean.other.ResponseData;
import org.springframework.stereotype.Component;

@Component
public class ResUtil {

    public ResponseData returnByMessage(String message){
        if(message.contains("成功")){
            return ResponseData.success(message);
        }else {
            return ResponseData.error(message);
        }
    }

}
